

function myreward(cb) {
    if (isdebug) {
        cb({ code: 1, data: { name: '啊啊', phone: 13995536182 } })
    } else {

        weAjax({
            method: 'post',
            url: 'http://api.juzhen.net/ncf_zp',
            data: {
                cm: 'myreward'
            }
        }, function (data) {
            cb(data);
        })
    }

}

function peopleReward(cb) {
    if (isdebug) {
        cb([
            { head_url: 'http://wx.qlogo.cn/mmopen/ajNVdqHZLLDqUm9QjMAPqQiaCU8rCK711DLUia7j6jyg1XGyEUlwQjRNLUicopibHVal5vmIsOUicLCrQNwAvTlh94g/0', nick_name: '小飞', reward_name: '三等奖' }
        ]
        )

    } else {
        weAjax({
            method: 'post',
            url: 'http://api.juzhen.net/ncf_zp',
            data: {
                cm: 'othersreward'
            }
        }, function (result) {
            cb(result.data);
        })
    }

}


function cj(cb) {
    if (isdebug) {
        cb({ code: 1, data: { code: 1, reward_name: '巴南万达电影票一张' } })
    } else {
        weAjax({
            method: 'post',
            url: 'http://api.juzhen.net/ncf_zp',
            data: {
                cm: 'cj',
                userInfo: JSON.parse(localStorage.getItem('localUserInfo'))
            }
        }, function (result) {
            cb(result);
        })
    }
}


function shareFn() {
    if (isdebug) {
        alert('分享成功')
    } else {
        weAjax({
            method: 'post',
            url: 'http://api.juzhen.net/ncf_zp',
            data: {
                cm: 'share'
            }
        }, function (result) {
            // cb(result);
        })
    }
}
